package com.zjhuang.mybatis_demo.service;

import com.zjhuang.mybatis_demo.entity.User;

import java.util.List;

/**
 * @author huang
 */
public interface UserService {
    List<User> getAll();

    int addUser(User user);

    User getById(int id);

    User getByName(String name);

    User checkLogin(User user);
}
